package cn.iocoder.springboot.lab17.dynamicdatasource.mapper;

import cn.iocoder.springboot.lab17.dynamicdatasource.constant.DBConstants;
import cn.iocoder.springboot.lab17.dynamicdatasource.dataobject.PgObjectDO;
import cn.iocoder.springboot.lab17.dynamicdatasource.dataobject.PgParamDO;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@DS(DBConstants.DATASOURCE_PG)
public interface PgMapper {

    List<PgObjectDO> selectSystem(@Param("projectId") String projectId);

    List<PgObjectDO> selectEquip(@Param("projectId") String projectId);

    List<PgParamDO> selectInfosParam(@Param("projectId") String projectId, @Param("wdCode") String wdCode, @Param("code") String code);

    List<PgParamDO> selectParam(@Param("objectId") String objectId);
}
